<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="applyForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                用户名称：
                            </label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${apply.userName}"></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                一级指标：
                            </label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${apply.itemOneName}"></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                二级指标：
                            </label>
                            <div class="col-sm-8" th:text=" ${apply.itemTwoName+'：'+apply.itemThreeName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请备注信息：</label>
                            <div class="col-sm-8">
                                <label class="control-label" th:text="${apply.remark}"></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>指标数量：
                            </label>
                            <div class="col-sm-3">
                                <label class="control-label " th:text="${apply.amount}">
                                </label>
                            </div>
                            <div class="col-sm-5">
                                <label class="control-label">
                                    审核金额：
                                </label>
                                <label class="control-label">
                                    <p class="text-danger" th:text="${apply.amount * itemDO.money}+'元'"></p>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">指标类型：</label>
                            <div class="col-sm-8">
                                <label class=" control-label" th:text="${itemDO.money}"></label>
                                <label class=" control-label" th:text="${itemDO.moneyUnit}"></label>
                                <span class="label label-success" th:if="${itemDO.moneyType=='0'}">奖励</span>
                                <span class="label label-warning" th:if="${itemDO.moneyType=='1'}">处罚</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">指标备注信息：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" title="" type="text" readonly
                                          th:text="${itemDO.remark}">
                                </textarea>
                            </div>
                        </div>
                        <div class="form-group" th:if="${fileDOS!=null}" th:each="item : ${fileDOS}">
                            <label class="col-sm-3 control-label">申请材料：</label>
                            <div class="col-sm-8">
                                <a th:href="${item.url}">
                                    <label class="control-label" th:text="${item.fileName}"></label>
                                </a>
                            </div>
                        </div>
                        <div class="form-group" th:if="${dataDO!=null}">
                            <label class="col-sm-3 control-label">材料说明：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" title="" type="text" readonly
                                          th:text="${dataDO.message}"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                审核结果：
                            </label>
                            <div class="col-sm-8">
                                <label th:text="${apply.stateName}" class="control-label">
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                审核意见：
                            </label>
                            <div class="col-sm-8">
                                <textarea id="checkMessage" name="checkMessage" class="form-control"
                                          readonly title="" type="text" th:text="${apply.checkMessage}"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
</body>
</html>
